//
//  Shape.h
//  Shape Object Extends
//
//  Created by quentin on 15/8/20.
//  Copyright (c) 2015年 QuentinLabs. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    KCircle,
    KRectangle,
    KEggs,
}ShapeTpe;


typedef enum{
    KRedColor,
    KGreenColor,
    KBlueColor,
}ShapeColor ;


typedef struct{
    int x,y,width,height;
}ShapeRect;


@interface Shape : NSObject
{
    ShapeColor fillColor;
    ShapeRect bounds;
}

//-

-(void) setFillColor:(ShapeColor)fillColor;

-(void) setBounds:(ShapeRect)bounds;

-(void) draw;
@end


@interface Circle : Shape
-(void)draw;
@end


@interface Rectangle : Shape
-(void)draw;
@end

@interface Egg : Shape
-(void)draw;
@end

extern NSString* colorName(ShapeColor colorName);
